﻿using Tinter.Common.Logging;

namespace Tinter.Common.NetImplementation
{
    /// <summary>
    /// A Trace Source base, log factory
    /// </summary>
    public class TraceSourceLogFactory : ILoggerFactory
    {
        /// <summary>
        /// Create the trace source log
        /// </summary>
        /// <returns>New ILogger based on Trace Source infrastructure</returns>
        public ILogger Create()
        {
            return this.Create("Tinter");
        }

        /// <summary>
        /// Create the trace source log with a source name.
        /// </summary>
        /// <param name="source">The log source name.</param>
        /// <returns>New ILogger based on Trace Source infrastructure</returns>
        public ILogger Create(string source)
        {
            return new TraceSourceLog(source);
        }
    }
}
